<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {eq name = "row.auth_status" value="0"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Auth_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-auth_status" class="form-control" name="row[auth_status]" type="text" value="未提交">
        </div>
    </div>
    {else /}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-auth_status" data-rule="required" disabled class="form-control selectpicker" name="row[auth_status]">
                <option value="0" {in name="0" value="$row.auth_status"}selected{/in}>未提交</option>
                <option value="1" {in name="1" value="$row.auth_status"}selected{/in}>审核中</option>
                <option value="2" {in name="2" value="$row.auth_status"}selected{/in}>已认证</option>
                <option value="3" {in name="3" value="$row.auth_status"}selected{/in}>不通过</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Id_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id_card" class="form-control" name="row[id_card]" type="text" value="{$row.id_card|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Video')}:</label>
        <div class="col-xs-12 col-sm-8">
            <a href="{$row.video}" target="_blank">
                <video src="{$row.video}" class="user-image" alt="" style="width: 160px;"></video>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hold_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <a href="{$row.video}" target="_blank">
                <img src="{$row.hold_card|htmlentities}" class="user-image" alt="" style="width: 160px;">
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Auth_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[auth_status]', ['2'=>__('审核通过'), '3'=>__('审核失败')],$row.auth_status)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Auth_desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-auth_desc" rows="5" name="row[auth_desc]" cols="66">{$row.auth_desc|htmlentities}</textarea>
        </div>
    </div>
    {/eq}

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
